package com.xdemo.personal.socketserver.msg;

import com.xdemo.core.MessageType;

public class QueryResultMessage extends BasePlayerMessage {

	private int key;
	
	public QueryResultMessage() {
		
	}
	
	public QueryResultMessage(int key) {
		this.key = key;
	}
	
	@Override
	public void writeImpl() {
		writeInt(key);
	}

	@Override
	public void readImpl() {
		key = readInt();
	}

	@Override
	public Integer getType() {
		return MessageType.Query;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}
	
}
